package com.ulife.order.api.response;

import com.ulife.common.gateway.utils.annotation.Description;

import java.io.Serializable;

/**
 * Created by Ulife on 2015/12/30.
 */
@Description("通用返回信息")
public class ResponseMessage implements Serializable {
    public boolean isSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    @Description("是否成功")
    public boolean isSuccess;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Description("消息")
    public String message;

    public ResponseMessage() {

    }

    public ResponseMessage(boolean isSuccess, String message) {
        this.isSuccess = isSuccess;
        this.message = message;
    }
    private static ResponseMessage success = new ResponseMessage(true, null);

    public static ResponseMessage success() {
        return success;
    }
}
